﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="MyOders.aspx.cs" Inherits="TimKen.Web.order.MyOders" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Common/easyUi/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../Common/easyUi/icon.css" rel="stylesheet" type="text/css" />
    <script src="../Common/easyUi/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="../Common/easyUi/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../Common/easyUi/datagrid-detailview.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<form id="Form1" runat="server">
<script type="text/javascript">
    function deleteMesg() {
        alert("购买成功！");
    }
</script>
    <div class="histroy_box common_border">
        <ul class="histroy_box_title">
            <h1>
             <%=GetLangString("MyOrd")%></h1>
        </ul>
         <table id="dg" style="width:690px;height:250px"  
            url="MyOrderJson.aspx"   
            pagination="true" sortName="itemid" sortOrder="desc"  
           singleSelect="true" fitColumns="true">  
       <thead>  
            <tr>  
                <th field="OrderNo" width="80">订单编号</th>  
                <th field="CreateDate" width="100">创建日期</th>  
               <th field="ContactPerson" align="right" width="80">联系人</th>  
               <th field="Status" align="right" width="120">订单状态</th>  
                <th field="moneys" width="80">税后金额</th>  
               <th field="ContractStatus" width="80" align="center">合同状态</th>  
           </tr>  
       </thead>  
    </table>
    </div>
    </form>
    <script type="text/javascript">  
        $(function(){
            $('#dg').datagrid({  
                view: detailview,  
                detailFormatter:function(index,row){  
                    return '<div id="ddv-' + index + '" style="padding:5px 0"></div>';  
                },  
                onExpandRow: function(index,row){  
                    $('#ddv-'+index).panel({
                        width:610,  
                       border:false,  
                       cache:false,
                       href: 'MyOrderDetail.aspx?itemid=' + row.OrderID,  
                       onLoad:function(){  
                           $('#dg').datagrid('fixDetailRowHeight',index);  
                        }  
                    });  
                   $('#dg').datagrid('fixDetailRowHeight',index);  
                }              });  
        });  
   </script>  

</asp:Content>
